<?php include('./templete/public/header.php'); ?>
<title><?php echo $web['site_config']['site_title'].'_'; ?>用户中心</title>
<body>
	<header class="clearfix">
		<a class="fl header_return"><i class="iconzuojiantou1 iconfont">&#xe616;</i>返回</a>
		<a class="header_new">个人中心</a>
		<a class="fr header_more"><i class="iconmore iconfont">&#xe637;</i></a>
	</header>
	<div class="sns_container">
		<div class="sns_photo_container pr" id="munepic" style="background: url(__INDEX__/imageAddress[i]);">
			<div class="sns_photo center">
				<i class="pr ">
					<img src="<?php echo $user_data['img_url']; ?>" width="100%" height="100%"/>
				</i>
				<p><?php echo $user_data['name']; ?></p>
			</div>
		</div>	
			<div class="setup_photograph">
					
				<a class="setup_photograph_text clearfix" href="<?php echo url('Jianli/lists'); ?>">
					<div class="setup_photograph_name fl">
					<i class="iconfont my_siteup">&#xe8a8;</i>我的简历
					</div>
					
				</a>
				<a class="setup_photograph_text clearfix" href="<?php echo url('index/qrcode') ?>" style="background-image: none;">
					<div class="setup_photograph_name fl"> 
					<i class="iconfont my_siteup"></i>我的推荐码
<!--                        我的推荐码： --><?php //echo ($user_data['tuijian'])?$user_data['tuijian']:'请先创建简历' ?>
					</div>
					
				</a>
				<a class="setup_photograph_text clearfix" style="background-image: none;">
					<div class="setup_photograph_name fl">
					<i class="iconfont my_siteup"></i>我的积分： <?php if ($user_data['count']): ?>
						<?php echo $user_data['count']; ?>
						<?php else: ?>
							0
					<?php endif ?>
					&nbsp;&nbsp;&nbsp;&nbsp;截止日期为:<?php echo date("Y-m-d",time()); ?>
					</div>
					
				</a>
				<a class="setup_photograph_text clearfix" href="<?php echo url('index/otuijian'); ?>">
					<div class="setup_photograph_name fl">
					<i class="iconfont my_siteup"></i>我推荐的人
					</div>
					
				</a>
				<a class="setup_photograph_text clearfix" <?php if (!$user_data['status_tel']): ?>
					style="display: none;"
				<?php endif ?>  >
					<div class="setup_photograph_name fl">
					<i class="iconfont my_siteup"></i><span style="color: red">您的手机信息有误，请重新填写！</span>
					</div>
					
				</a>
			</div>
			<input type="hidden" value="">
	</div>
	
	<hr style="height: 200px;border: none;">
<?php include('./templete/public/footer.php'); ?>
</body>
	<script>
	var imageAddress= new Array()
		imageAddress[0]='url(__INDEX__/images/1.jpg)';
		imageAddress[1]='url(__INDEX__/images/2.jpg)';
		imageAddress[2]='url(__INDEX__/images/3.jpg)';
	 
	function  newBackgroundImage(munepic){
    //产生一个随机数
    var i=parseInt(Math.random()*3);
    //将id＝munepic的容器的背景图片地址改为imageAddress[i]
    document.getElementById("munepic").style.backgroundImage=imageAddress[i];
}
	newBackgroundImage(munepic);


</script>
</html>

